package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.UserMessageRoleService;

@Controller
@RequestMapping("userMessageRole")
public class UserMessageRoleController {

	@Autowired
	private UserMessageRoleService userMessageRoleService;
	
	@RequestMapping("getList")
	public Object getList(String umRoleName,Integer pageNo,Integer pageSize){
		return userMessageRoleService.getList(umRoleName, pageNo, pageSize);
	}
	@RequestMapping("addOrUpdate")
	@ResponseBody
	public Object addOrUpdate(@RequestBody String json){
		return userMessageRoleService.addOrUpdate(json);
	}
	@RequestMapping("del")
	public Object del(String ids){
		return userMessageRoleService.del(ids);
	}
	
	
}
